<template>
    <div>
        <Header :hasBorder="true" />
        <MovieDetail :mId="mId" :buy="false"/>
        <div class="container">
        <PlanVue :mId="mId"/>
    </div>
    </div>
</template>

<script>
import MovieDetail from '@/components/MovieDetail'
import Header from '@/components/Header'
import PlanVue from './Plan.vue'
export default {
  name: 'TtmsIndex',
  components: { MovieDetail, Header, PlanVue },
  data () {
    return {

    }
  },
  computed: {
    // eslint-disable-next-line vue/return-in-computed-property
    mId () {
      if (this.$route.params.movieId) {
        return this.$route.params.movieId
      }
      if (this.$route.query.movieId) {
        return this.$route.query.movieId
      }
    }
  },

  mounted () {

  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
.container {
    margin-top: 120px;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
</style>
